/**
 * Created by will on 2017/10/21.
 */
$(function () {
    layui.use(['laypage', 'layer','table','laydate','upload'], function () {
        var upload = layui.upload
            ,laypage=layui.laypage;
        // 上传文件
        upload.render({
            elem: '.test3'
            , url: '/upload/'
            , accept: 'file' //普通文件
            , done: function (res) {
                console.log(res)
            }
        });
        //分页样式
        laypage.render({
            elem: 'user-supply-paging'
            , count: 100
            , theme: '#45A2FF'
            , groups: 4
            ,prev: '<em><</em>'
            ,next: '<em>></em>'
            , layout: ['prev', 'page', 'next', 'limit' ,'skip']
            , jump: function (obj) {
                console.log(obj)
            }

        });
    })
    //添加供应商跳转
    $("#add-supply").click(function(){
        window.location.href="./easytrip-user-supplyadd.html"
    })
});

